/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户币种Entity
 * @author 罗天文
 * @version 2018-05-08
 */
public class HkUserCurrency extends DataEntity<HkUserCurrency> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户id
	private String currencyType;		// 币种类型
	private String count;		// 币种数量
	private String integral;		// 乐币数量
	
	public HkUserCurrency() {
		super();
	}

	public HkUserCurrency(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=1, message="币种类型长度必须介于 0 和 1 之间")
	public String getCurrencyType() {
		return currencyType;
	}

	public void setCurrencyType(String currencyType) {
		this.currencyType = currencyType;
	}
	
	@Length(min=0, max=11, message="币种数量长度必须介于 0 和 11 之间")
	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}
	
	@Length(min=0, max=11, message="乐币数量长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
}